package com.topvision.camerasdk.camera2;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by gushenjie on 18/6/29.
 */

public class ToastUtils {
    private static Toast toast;

    public static void showToast(Context mContext,String msg) {
        if (toast == null) {
            toast = Toast.makeText(mContext,"",Toast.LENGTH_SHORT);
        }
        toast.setText(msg);
        toast.show();
    }
}
